import re



pattern = r"\s*@"
string = "@刘德华  @邓丽君  @蔡琴 "

name_list = re.split(pattern, string)
print ('您@的好友有:')
for item in name_list:
    if item != "":
        print(item)